package com.limit.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @title: UserUtil
 * @Author xu-xiang
 * @Date: 2024/4/7 14:40
 * @description:
 */
public class UserUtil {

    /**
     * 模拟获取当前用户id
     */
    public static String getCurrentUserId() {
        return "user-" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMdd"));
    }
}
